import 'package:flutter/material.dart';
import 'package:moose_app/ui/values/values.dart';

import 'auth_text_field_wrap.dart';

class ATHAuthAccountInput extends StatelessWidget {
  final String hintText;
  final IconData icon;
  final ValueChanged<String> onChanged;
  final TextEditingController controller;

  const ATHAuthAccountInput({
    Key key,
    this.hintText,
    this.icon = Icons.person,
    this.controller,
    this.onChanged,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return ATHAuthTextFieldWrap(
      child: TextField(
        onChanged: onChanged,
        controller: controller,
        decoration: InputDecoration(
          icon: Container(
            padding: EdgeInsets.only(left: kSize16),
            child: Icon(
              Icons.people,
              color: kColorPrimary,
            ),
          ),
          hintText: hintText,
          border: InputBorder.none,
        ),
      ),
    );
  }
}
